package com.rayboo.vo;

import com.rayboo.model.AdminUser;

/**
 * 
 * SessionUser
 * 
 * @author ray
 * @date 2016年9月8日 下午8:15:12
 *
 */
public class SessionUser {

	private Long id;

	private String username;

	private String loginTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public void assignUser(AdminUser user) {
		this.setId(user.getId());
		this.setUsername(user.getUsername());
	}

	@Override
	public String toString() {
		return "SessionUser [id=" + id + ", username=" + username + ", loginTime=" + loginTime + "]";
	}

}
